package Exists;

public class Student implements Comparable<Student> {

    String name;
    Integer chinesescore;
    Integer Mathsocer;
    Integer Englishscore;

    public Student() {
    }

    public Student(String name, Integer chinesescore, Integer mathsocer, Integer englishscore) {
        this.name = name;
        this.chinesescore = chinesescore;
        Mathsocer = mathsocer;
        Englishscore = englishscore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getChinesescore() {
        return chinesescore;
    }

    public void setChinesescore(Integer chinesescore) {
        this.chinesescore = chinesescore;
    }

    public Integer getMathsocer() {
        return Mathsocer;
    }

    public void setMathsocer(Integer mathsocer) {
        Mathsocer = mathsocer;
    }

    public Integer getEnglishscore() {
        return Englishscore;
    }

    public void setEnglishscore(Integer englishscore) {
        Englishscore = englishscore;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", chinesescore='" + chinesescore + '\'' +
                ", Mathsocer='" + Mathsocer + '\'' +
                ", Englishscore='" + Englishscore + '\'' +
                '}'+"总分为"+(Mathsocer+chinesescore+Englishscore);
    }

    @Override
    public int compareTo(Student o) {
        return 0;
    }
}
